package expand.shikh.com.customview.keyboard;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

import expand.shikh.com.customview.R;

public class EditKeyBoardActivity extends AppCompatActivity {

    protected ListView mListView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_edit_key_board);
        mListView = (ListView)findViewById(R.id.list_view);
        setAdapter();
    }

    private void setAdapter() {
        int size = 35;
        String[] stringArray = new String[size];
        for (int i = 0; i < size; ++i) {
            stringArray[i] = ""+i;
        }
        ArrayAdapter<String> adapter =
                new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, stringArray);
        mListView.setAdapter(adapter);
    }
}
